/* 
 * Copyright (c) 2019, CENTRIN.CIYUN.LTD. All rights reserved.
 */
package com.cory.boot.domain.chart;

/**
 * 饼图
 * @author xiongcong
 * @date 2019-04-09
 */
public class Pie extends Series<Pie> {
    
    public Pie() {
        super.type(SeriesType.pie);
    }
    
    public Pie(String name) {
        super.name(name);
        super.type(SeriesType.pie);
    }

    public Pie data(SeriesData value) {
        return super.data(value);
    }
    
    public Pie data(SeriesData... values) {
        if ((values == null) || (values.length == 0)) {
            return this;
        }
        for (SeriesData value : values) {
            this.data(value);
        }
        return this;
    }
}
